package com.fone.player.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 
 * 节目预约实体类
 * 
 * @author wangyang
 * @since 2014年5月29日
 */
public class ContentSubscribe implements Parcelable {
	// 节目预约ID
	private int mContentSubscribeId;
	// 节目名称
	private String mContentSubscribeName;
	// 节目连接
	private String mContentSubscribeUrl;
	// 节目预约时间
	private long mContentSubscribeTime;

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(mContentSubscribeId);
		out.writeString(mContentSubscribeName);
		out.writeString(mContentSubscribeUrl);
		out.writeLong(mContentSubscribeTime);

	}

	public static final Parcelable.Creator<ContentSubscribe> CREATOR = new Parcelable.Creator<ContentSubscribe>() {
		public ContentSubscribe createFromParcel(Parcel in) {
			return new ContentSubscribe(in);
		}

		public ContentSubscribe[] newArray(int size) {
			return new ContentSubscribe[size];
		}
	};

	private ContentSubscribe(Parcel in) {
		mContentSubscribeId = in.readInt();
		mContentSubscribeName = in.readString();
		mContentSubscribeUrl = in.readString();
		mContentSubscribeTime = in.readLong();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public ContentSubscribe() {

	}

	public int getContentSubscribeId() {
		return mContentSubscribeId;
	}

	public void setContentSubscribeId(int contentSubscribeId) {

		mContentSubscribeId = contentSubscribeId;
	}

	public String getContentSubscribeName() {
		return mContentSubscribeName == null ? "" : mContentSubscribeName;
	}

	public void setContentSubscribeName(String contentSubscribeName) {

		mContentSubscribeName = contentSubscribeName;
	}

	public String getContentSubscribeUrl() {
		return mContentSubscribeUrl == null ? "" : mContentSubscribeUrl;
	}

	public void setContentSubscribeUrl(String contentSubscribeUrl) {

		mContentSubscribeUrl = contentSubscribeUrl;
	}

	public long getContentSubscribeTime() {
		return mContentSubscribeTime;
	}

	public void setContentSubscribeTime(long contentSubscribeTime) {

		mContentSubscribeTime = contentSubscribeTime;
	}
}
